@import "../../base.less";

@import "./_var.less";

.@{prefix}-radio {
  display: flex;
  align-items: center;

  &__former {
    display: none;
    position: absolute;
  }

  &__content-wrap {
    display: flex;
    align-items: flex-start;
    // padding-top: 16px;
    // background-color: #fff;
    width: 100%;
    // padding-left: 18px;
    position: relative;
    overflow: hidden;
  }

  &__label-wrap {
    // border-bottom: 1px solid #f5f5f5;
    width: 100%;
    display: block;
    // padding-bottom: 16px;
  }

  &__icon-wrap {
    width: 22px;
    height: 22px;
    margin-right: 10px;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  &__icon-right-wrap {
    // position: absolute;
    // right: 0;
    // top: 15px;
    // display: flex;
    margin-left: 10px;
  }

  &__default-shape {
    display: inline-block;
    height: @radio-height;
    width: @radio-width;
    background-color: #fff;
    border-radius: 50%;
    border: 1px solid #ccc;
    flex-shrink: 0;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    left: -28px;
    .@{prefix}-is-checked {
      color: red;
    }
    &.@{prefix}-is-disabled {
      background-color: #f9f9f9;
      opacity: .4;
    }
  }

  &__content-title {
    font-size: @radio-title-font-size;
    color: @radio-title-font-color;
    position: relative;
    display: flex;
    align-items: flex-end;
    &.@{prefix}-is-disabled {
      color: @radio-content-color;
    }
  }

  &__content-right-title {
    padding-right: 22px;
  }

  &__content-inner {
    display: block;
    font-size: @radio-content-font-size;
    color: @radio-content-color;
    margin-top: 8px;
    position: relative;
  }

  &__original-left,
  &__original-right {
    opacity: 0;
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
  }

  &__icon-disable-center {
    display: block;
    height: 15px;
    width: 15px;
    background-color: #eee;
    position: absolute;
    border-radius: 50%;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
  }
}
